package com.oneinlet.service;

import com.oneinlet.dao.UserDao;
import com.oneinlet.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

/**
 * Created by WangZiHe on 2017/11/5
 * QQ/WeChat:648830605
 * QQ-Group:368512253
 * Blog:www.520code.net
 * Github:https://github.com/yancheng199287
 */

@Service
public class UserService extends BaseService<User, Integer> {

    private final UserDao userDao;

    @Autowired
    public UserService(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    protected JpaRepository<User, Integer> getBaseDAO() {
        return userDao;
    }
}
